<!DOCTYPE html>
<html lang="en">
    
    <?php $this->load->view('secciones/header'); ?>

    <body>
    <?php $this->load->view('secciones/title'); ?>
        
    <?php 
        //el navbar cambia dependiendo de la sesion;
        $this->load->view('secciones/navbar');
        
    ?>
       
    <div class="container-fluid">
        <div class="row-fluid">
            <?php
                if (!isset($sideSpan)){
                    $sideSpan = "3";
                }
            ?>
            <div class=<?php echo "'span".$sideSpan."'"; ?>>
            <?php
                //Considerando que los sidebar son dependiendo del controlador..
                $this->load->view($this->uri->segment(1).'/'.$this->uri->segment(1).'_sidebar');
            
            ?>
            </div>
            <div class="span9" id="content">
                
                <!-- MENSAJES-->
                <?php if ($this->session->flashdata('warning')){ ?>
                    <div class="alert">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <?php echo $this->session->flashdata('warning'); ?>
                    </div>
                <?php } ?>
                <?php if ($this->session->flashdata('error')){ ?>
                    <div class="alert alert-error">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <?php echo $this->session->flashdata('error'); ?>
                    </div>
                <?php } ?>
                <?php if ($this->session->flashdata('success')){ ?>
                    <div class="alert alert-success">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <?php echo $this->session->flashdata('success'); ?>
                    </div>
                <?php } ?>
                 <?php if ($this->session->flashdata('info')){ ?>
                    <div class="alert alert-info">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <?php echo $this->session->flashdata('info'); ?>
                    </div>
                <?php } ?>
                <!-- CONTENIDO-->
                <?php $this->load->view($content); ?>
            </div>
        </div>
    </div>
    <hr>

    <?php  $this->load->view('secciones/footer');    ?>

    </body>
</html>
        